package com.zero.manage.web.components.query;

import com.querydsl.core.types.Order;
import com.zero.manage.web.components.base.BaseQuery;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;

import java.util.LinkedHashMap;

@Getter
@Setter
@ApiModel("数据库管理-查询条件")
public class DatabaseInfoQuery extends BaseQuery {
    @Override
    protected LinkedHashMap<String, String> initSort() {
        LinkedHashMap<String, String> map = new LinkedHashMap<>(1);
        map.put("createTime", Order.DESC.name());
        return map;
    }
}

